﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NotifierService;
using System.ServiceModel;
using NotifierService.Service;
using System.ServiceModel.Channels;

namespace NotifierService.Client
{
    class EasyClient : ClientBase<Service.IServiceBase>, Service.IServiceBase
    {
        public EasyClient(Binding binding, EndpointAddress remoteAddress): base(binding, remoteAddress) { }

        public bool Authenticate(string name, string password)
        {
            return Channel.Authenticate(name, password);
        }

        public bool PlayAudio(AudioType type)
        {
            return Channel.PlayAudio(type);
        }

        public RealtimeBroadcastServiceData StartRealtimeBroadcast()
        {
            return Channel.StartRealtimeBroadcast();
        }

        public bool StopRealtimeBroadcast()
        {
            return Channel.StopRealtimeBroadcast();
        }
    }
}
